﻿using Entitys.Models.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Result
{
    public class ZErrorResultException : Exception
    {
        private ZResult ErrorResult { get; set; }

        public override string Message => $"{ErrorResult}-{base.Message}";

        public ZErrorResultException(ZResult errorResult)
        {
            this.ErrorResult = errorResult;
        }

        public override string ToString()
        {
            return $"{ErrorResult}-{base.ToString()}";
        }

    }

}
